/**
    @author: ChenLin
    @date: 2022/11/11 todo 视频服务接口
**/

package _interface

import "../../handler"

type VideoProcessInterface interface {
	//1、下载视频
	DownloadVideo(videoUrl, dirUrl string) (string, error)
	//2、截图
	ScreenShot(fileUrl, imageUrl string) (string, error)
	//3、图片上传dfs
	UploadImageToDFS(imageUrl, uploadName string) (*handler.UploadResult, error)
	//4、视频压缩处理
	VideoCompress(videoUrlIn, videoUrlOut string) (string, error)
	//5、视频上传dfs
	UploadVideoToDFS(videoUrl, UploadName string) (*handler.UploadResult, error)

	TaskProducer(out chan<- handler.Task)

	TaskConsumer() (handler.Task, error)
}
